package com.zsrt.day20170411.pm;
/**
*@author jzh
*@创建时间 2017年4月11日下午2:26:31
*类说明：
*/
public class Person {
	
	private String name;
	private int age;
	private char sex;
	private float salary;
	
	
	public Person(String name, int age, char sex) {
		super();
		this.name = name;
		this.age = age;
		this.sex = sex;
	}
	
	
	public Person(String name, int age, char sex, float salary) {
		super();
		this.name = name;
		this.age = age;
		this.sex = sex;
		this.salary = salary;
	}


	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public int getAge() {
		return age;
	}
	public void setAge(int age) {
		this.age = age;
	}
	public char getSex() {
		return sex;
	}
	public void setSex(char sex) {
		this.sex = sex;
	}
    
	public void learn(String st){
		System.out.println(this.name+"在学习"+st);
		
	}
	public String info(){
		return "Person [name=" + name + ", age=" + age + ", sex=" + sex + "]";
		
	}
	
	
	

	

}
